﻿Type=Activity
Version=3.15
@EndOfDesignText@
#Region Module Attributes
	#FullScreen: False
	#IncludeTitle: True
#End Region

'Activity module
Sub Process_Globals
	'These global variables will be declared once when the application starts.
	'These variables can be accessed from all modules.

End Sub

Sub Globals
	'These global variables will be redeclared each time the activity is created.
	'These variables can only be accessed from this module.

	Dim lstMemu As ListView
End Sub

Sub Activity_Create(FirstTime As Boolean)
	Activity.LoadLayout("FormMain")
	Activity.Title = "AnXT"	
	
	InitLayOut
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub

Sub InitLayOut
	lstMemu.Clear
	lstMemu.AddTwoLines2("支出","记录支出",0)
	'lstMemu.AddTwoLines2("收入","记录收入",1)
	
	'lstMemu.TwoLinesLayout.Label.TextSize = 25
	lstMemu.TwoLinesLayout.ItemHeight = 100
	lstMemu.FastScrollEnabled = True
	
	'高级菜单
	Activity.AddMenuItem("支出项目","MenuItemAdv")
	Activity.AddMenuItem("同步数据","MenuItemAdv")
	Activity.AddMenuItem("重新登录","MenuItemAdv")
End Sub

Sub lstMemu_ItemClick (Position As Int, Value As Object)
	If Position = 0 Then
		PublicVar.GV_JZ_ZCJL_ID = 0
		StartActivity("JZ_ZCJL") 
	End If
	
End Sub

Sub MenuItemAdv_Click
	If Sender = "支出项目" Then
		StartActivity("ZD_ZCXM")
	Else If Sender = "同步数据" Then
		StartActivity("JZ_TBSJ")
	Else If Sender = "重新登录" Then
		StartActivity("Login")		
	End If
	
End Sub